package com.tonann.app.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tonann.common.annotation.Excel;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Map;

/**
 * 运行记录对象 app_sensor_record
 *
 * @author tonann
 * @date 2022-10-21
 */

@Data
public class AppSensorRecordMonth implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Id
//    @AutoIncKey
    private Long recordId;

    /**
     * 传感器ID
     */
    @Excel(name = "传感器ID")
    private Long sensorId;

    /**
     * 传感器值
     */
    @Excel(name = "传感器值")
    private String value;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate createTime;


    /** 请求参数 */
    private Map<String, Object> params;

}
